package org.jjche.demo.modules.student.api.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.jjche.common.annotation.Dict;

/**
 * <p>
 * 课程类型,102:图文,103:音频,104:视频,105:外链
 * </p>
 *
 * @author miaoyj
 * @version 1.0.0-SNAPSHOT
 * @since 2020-07-09
 */
@Getter
@AllArgsConstructor
public enum StudentCourseEnum implements Dict<Integer> {

    /**
     * 图文
     */
    PICTURE(102, "图文"),
    /**
     * 音频
     */
    AUDIO(103, "音频"),
    /**
     * 视频
     */
    VIDEO(104, "视频"),
    /**
     * 外链
     */
    URL(105, "外链"),
    ;

    StudentCourseEnum(Integer code, String text) {
        init(code, text);
    }

}
